<?php
namespace app\validate;

use think\Validate;

class BbsValidate extends Validate
{

    protected $rule = [
        'content'     => 'require',
        'bbs_id'      => 'require',
    ];
    
    protected $message           = [
        'content.require' => '请输入内容',
        'bbs_id.require'  => '圈子动态ID有误',
    ];
    
    protected $scene = [
        # 发布
        'release' => ['content'],

        # 点赞
        'like' => ['bbs_id']
    ];
}